package com.zccx.eth.service.impl;


import com.zccx.eth.dao.UserRepository;
import com.zccx.eth.model.User;
import com.zccx.eth.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("userService ")
public class UserServiceImpl implements IUserService {
    @Autowired
    private UserRepository userRepository;


    @Override
    public User findByName(String name) {
        User info = userRepository.findByName(name);
        return info;
    }
}
